﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

namespace MyWeb.Data
{
    public class VisitorController : SqlDataProvider
    {

        public DataTable Visitor_GetByAll()
        {
            using (SqlCommand cmd = new SqlCommand("sp_Visitor_GetByAll", GetConnection()))
            {
                cmd.CommandType = CommandType.StoredProcedure;
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                DataTable dt = new DataTable();
                da.Fill(dt);
                return dt;
            }
        }
    }
}